require.config({
    baseUrl: '/',
    paths: {
        'jquery': 'libs/jquery/jquery-3.4.1.min',
        'header': 'js/modules/header',
        'footer': 'js/modules/footer',
        'floatbar': 'js/modules/floatbar',
        'template': 'libs/art-template/template-web',
        'fly': 'libs/jquery-plugins/jquery.fly.min',
        'zoom': 'libs/jquery-plugins/jquery.elevateZoom-3.0.8.min',
        'Swiper':'libs/swiper/swiper.min',
        'cookie':'libs/jquery-plugins/jquery.cookie'
    },
    // 垫片：如果一个js不遵循AMD规范而且要依赖别的js模块，那么就需要垫片
    shim: {
        'fly': {
        deps: ['jquery']
        },
        'zoom': {
        deps: ['jquery']
        },
        'swiper':{
        deps: ['jquery']
        }
    }
})